package com.urms.service;

import com.github.pagehelper.PageInfo;
import com.urms.entity.QueryUserCondition;
import com.urms.entity.User;

import java.util.List;

public interface UserSerivce {
    List<User> selectAll();

    /**
     *添加用户数据
     * @param user
     * @return
     */
    Integer insertUser(User user);

    User selectByLoginNameAndPwd(User user);

    PageInfo<User> findUser(QueryUserCondition quc);
    PageInfo<User> selectUserByQuc(QueryUserCondition quc);
    Integer deleteUserById(Integer userId);

    Integer updateHidden(Integer userId);

    Integer updateUserStatusById(Integer id);

    User getPassword(Integer userId);

    Integer updateUserById(User user);

    PageInfo<User> userSelectByCondition(QueryUserCondition quc);

    Integer selectByuserName(String userLoginName);

    Integer selectByPhone(String userPhone);

    Integer removeUserByIds(Integer[] ids);
}
